package base;



import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by Administrator on 2017/9/11.
 */
public interface    IBaseMapper<Record extends IBaseEntity,RecordWithBLOBs extends  Record,Example>   {

    int countByExample(Example example) throws Exception ;

    int deleteByExample(Example example) throws Exception ;

    int deleteByPrimaryKey(String id) throws Exception ;

    int insert(RecordWithBLOBs record) throws Exception ;

    int insertSelective(RecordWithBLOBs record) throws Exception ;

    List<Record> selectByExample(Example example)throws Exception ;

    RecordWithBLOBs selectByPrimaryKey(String id)throws Exception ;

    int updateByExampleSelective(@Param("record") RecordWithBLOBs record, @Param("example") Example example)throws Exception ;

    int updateByExample(@Param("record") Record record, @Param("example") Example example)throws Exception ;

    int updateByPrimaryKeySelective(RecordWithBLOBs record)throws Exception ;

    int updateByPrimaryKey(Record record)throws Exception ;
}
